﻿@{
    ViewBag.Title = "企业资质详情信息";
    Layout = Url.Content("~/Views/Shared/_Layout.cshtml");
}


<!--总容器开始-->
<div class="page-header">
    <h1>
        @ViewBag.Title
        <small></small>
    </h1>
</div>
<div id="PAGE_MODEL" class="container">
    <h3 style="border-bottom:1px solid #999; padding:.3em;">
        <i class="fa fa-info-circle fa-fw"></i>
        企业资质详情信息
    </h3>
    <br />
    <div class="row">
        <!--项目类型/名称-->
        <div class="panel panel-info">
            <div class="panel-heading">基本信息</div>
            <div class="panel-body">
                <p><b>项目类型/名称：</b>{{VmQualification.Type}}</p>
                <br />
                <p><b>项目内容：</b><span v-html="return2Br(VmQualification.Content)"></span></p>
                <br />
                <p><b>备注说明：</b><span v-html="return2Br(VmQualification.Remark)"></span></p>
                <br />
            </div>
        </div>

        <!-- 关联明细 -->
        <div class="panel panel-info">
            <div class="panel-heading">关联明细</div>
            <div class="panel-body">
                <ul class="list-group" v-for="(e,index) in VmQualification.VmQualificationDetails">
                    <li class="list-group-item list-group-item-success">
                        <p><b>序号：</b>{{index+1}}</p>
                        <br />
                        <p><b>资质要求：</b><span v-html="return2Br(e.Details_Require)"></span></p>
                        <br />
                        <p><b>资质范围：</b><span v-html="return2Br(e.Details_Range)"></span></p>
                        <br />
                        <p><b>备注说明：</b><span v-html="return2Br(e.Details_Remark)"></span></p>
                        <br />
                    </li>
                </ul>
            </div>
        </div>

        <!-- 关联附件 -->
        <div class="panel panel-info">
            <div class="panel-heading">关联附件</div>
            <div class="panel-body">
                <ul class="list-group" v-for="(e,index) in VmQualification.VmAttachments">
                    <li class="list-group-item list-group-item-success">
                        {{index+1}}
                        <a v-bind:href="'@Url.Action("downAttachment","Qualification")'+'?id='+e.AId">
                            {{e.FileName}}
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- 提交按钮开始 -->
    <div class="row">
        <div class="col-md-12 text-center">
            <button type="button" class="btn btn-success" v-on:click="window.history.go(-1);">返回前页</button>
        </div>
    </div>
    <!-- 提交按钮结束 -->
</div>
<!--总容器结束-->
@section Script{

    <script src='@Url.Content("~/Scripts/jquery.form.js")' type="text/javascript"></script>

    <script src='@Url.Content("~/Scripts/Qualification/Qualification.js")' type="text/javascript"></script>

    <script type="text/javascript">
        //链接地址定义
        var URLs = {
            URL_GET_ONEQUALIFICATION: '@Url.Action("GetOneQualification", "Qualification")'           //获取一条要编辑的数据
            ,URL_GET_FILE:'@Url.Action("downAttachment", "Qualification")'                            //下载文件
        }

        $(function () {
            vm.VmQualification.Qid = "@Request["QId"]";

            if (vm.VmQualification.Qid != null && vm.VmQualification.Qid != "") {

                vm.getDataFromListToUpdate(vm.VmQualification.Qid);

            }
        });
    </script>
}